<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <div class="section">
                <h1>Visualizando Corretor</h1>
                <h:form id="formCorrector">
                    <p:growl id="msg" life="3000"/>
                    <div class="container_24 clearfix">

                        <p:panel header="Dados Gerais">
                            <p:outputLabel value="Nome:" styleClass="grid_3" />
                            <p:inputText styleClass="grid_20 ajustInput" readonly="true" 
                                         value="#{managerViewCorrector.corrector.name}" />

                            <p:outputLabel value="CPF:" styleClass="grid_3" />
                            <p:inputText  styleClass="grid_8" readonly="true"
                                          value="#{managerViewCorrector.corrector.cpf}" />

                            <p:outputLabel value="Creci:" styleClass="grid_3" />
                            <p:inputText styleClass="grid_8" readonly="true"
                                         value="#{managerViewCorrector.corrector.creci}" />

                            <p:outputLabel value="Conta:" styleClass="grid_3" />
                            <p:inputText styleClass="grid_5" readonly="true"
                                         value="#{managerViewCorrector.corrector.account}" />
                            
                            <p:outputLabel value="Operação:" styleClass="grid_3" />
                            <p:inputText styleClass="grid_3" readonly="true"
                                         value="#{managerViewCorrector.corrector.operation}"  />
                           
                            <p:outputLabel value="Agência:" styleClass="grid_3 alpha" />
                            <p:inputText styleClass="grid_5" readonly="true"
                                         value="#{managerViewCorrector.corrector.agency}"  />

                            <div class="clear"/>
                        </p:panel>

                        <p:panel header="Endereço">
                            <p:outputLabel value="CEP:" styleClass="grid_3" />
                            <p:inputText styleClass="grid_8" readonly="true"
                                         value="#{managerViewCorrector.corrector.address.cep}" />
                            <div class="clear-both" />
                           
                            <p:outputLabel value="Rua:" styleClass="grid_3" />
                            <p:inputText styleClass="grid_20 ajustInput" readonly="true"
                                         value="#{managerViewCorrector.corrector.address.patio}" />
                            
                            <p:outputLabel value="Bairro:" styleClass="grid_3" />
                            <p:inputText  styleClass="grid_8" readonly="true"
                                          value="#{managerViewCorrector.corrector.address.district}" />
                            
                            <p:outputLabel value="Complemento:" styleClass="grid_4" />
                            <p:inputText styleClass="grid_7" readonly="true"
                                         value="#{managerViewCorrector.corrector.address.complement}" />
                            
                            <p:outputLabel value="Nº:" styleClass="grid_3" />
                            <p:inputText styleClass="grid_8" readonly="true"
                                         value="#{managerViewCorrector.corrector.address.num}" />
                            
                            <p:outputLabel  value="Cidade:" styleClass="grid_4"  />
                            <p:inputText styleClass="grid_7" readonly="true"
                                         value="#{managerViewCorrector.corrector.address.city.name}" />

                            <p:outputLabel value="Tipo:" styleClass="grid_3"/>
                            <p:inputText styleClass="grid_8" readonly="true"
                                         value="#{managerViewCorrector.corrector.address.typeAddress.name}" />
                            <div class="clear"/>
                        </p:panel>
                        
                        <p:panel header="">
                            <p:outputLabel  value="Nome:" styleClass="grid_3"  />
                            <p:inputText styleClass="grid_6" readonly="true"
                                         value="#{managerViewCorrector.user.name}" />
                            
                            <p:outputLabel  value="Login:" styleClass="grid_3"  />
                            <p:inputText styleClass="grid_6" readonly="true"
                                         value="#{managerViewCorrector.user.login}" />
                            <div class="clear"/>
                        </p:panel>
                        
                        <div class="clear" />
                    <div class="buttonAction">

                        <p:button value="Voltar"
                                    href="searchcorrector.xhtml"
                                    icon="ui-icon-arrowreturnthick-1-w"/>
                    </div>
                </div>
            </h:form>
        </div>
    </ui:define>
</ui:composition>

</html>
